package com.sunny.fetch.pojo;

import java.util.ArrayList;
import java.util.List;

public class FCbPriceChgExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FCbPriceChgExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTidIsNull() {
            addCriterion("tid is null");
            return (Criteria) this;
        }

        public Criteria andTidIsNotNull() {
            addCriterion("tid is not null");
            return (Criteria) this;
        }

        public Criteria andTidEqualTo(Long value) {
            addCriterion("tid =", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotEqualTo(Long value) {
            addCriterion("tid <>", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThan(Long value) {
            addCriterion("tid >", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThanOrEqualTo(Long value) {
            addCriterion("tid >=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThan(Long value) {
            addCriterion("tid <", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThanOrEqualTo(Long value) {
            addCriterion("tid <=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidIn(List<Long> values) {
            addCriterion("tid in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotIn(List<Long> values) {
            addCriterion("tid not in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidBetween(Long value1, Long value2) {
            addCriterion("tid between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotBetween(Long value1, Long value2) {
            addCriterion("tid not between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTsCodeIsNull() {
            addCriterion("ts_code is null");
            return (Criteria) this;
        }

        public Criteria andTsCodeIsNotNull() {
            addCriterion("ts_code is not null");
            return (Criteria) this;
        }

        public Criteria andTsCodeEqualTo(String value) {
            addCriterion("ts_code =", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeNotEqualTo(String value) {
            addCriterion("ts_code <>", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeGreaterThan(String value) {
            addCriterion("ts_code >", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeGreaterThanOrEqualTo(String value) {
            addCriterion("ts_code >=", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeLessThan(String value) {
            addCriterion("ts_code <", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeLessThanOrEqualTo(String value) {
            addCriterion("ts_code <=", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeLike(String value) {
            addCriterion("ts_code like", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeNotLike(String value) {
            addCriterion("ts_code not like", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeIn(List<String> values) {
            addCriterion("ts_code in", values, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeNotIn(List<String> values) {
            addCriterion("ts_code not in", values, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeBetween(String value1, String value2) {
            addCriterion("ts_code between", value1, value2, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeNotBetween(String value1, String value2) {
            addCriterion("ts_code not between", value1, value2, "tsCode");
            return (Criteria) this;
        }

        public Criteria andBondShortNameIsNull() {
            addCriterion("bond_short_name is null");
            return (Criteria) this;
        }

        public Criteria andBondShortNameIsNotNull() {
            addCriterion("bond_short_name is not null");
            return (Criteria) this;
        }

        public Criteria andBondShortNameEqualTo(String value) {
            addCriterion("bond_short_name =", value, "bondShortName");
            return (Criteria) this;
        }

        public Criteria andBondShortNameNotEqualTo(String value) {
            addCriterion("bond_short_name <>", value, "bondShortName");
            return (Criteria) this;
        }

        public Criteria andBondShortNameGreaterThan(String value) {
            addCriterion("bond_short_name >", value, "bondShortName");
            return (Criteria) this;
        }

        public Criteria andBondShortNameGreaterThanOrEqualTo(String value) {
            addCriterion("bond_short_name >=", value, "bondShortName");
            return (Criteria) this;
        }

        public Criteria andBondShortNameLessThan(String value) {
            addCriterion("bond_short_name <", value, "bondShortName");
            return (Criteria) this;
        }

        public Criteria andBondShortNameLessThanOrEqualTo(String value) {
            addCriterion("bond_short_name <=", value, "bondShortName");
            return (Criteria) this;
        }

        public Criteria andBondShortNameLike(String value) {
            addCriterion("bond_short_name like", value, "bondShortName");
            return (Criteria) this;
        }

        public Criteria andBondShortNameNotLike(String value) {
            addCriterion("bond_short_name not like", value, "bondShortName");
            return (Criteria) this;
        }

        public Criteria andBondShortNameIn(List<String> values) {
            addCriterion("bond_short_name in", values, "bondShortName");
            return (Criteria) this;
        }

        public Criteria andBondShortNameNotIn(List<String> values) {
            addCriterion("bond_short_name not in", values, "bondShortName");
            return (Criteria) this;
        }

        public Criteria andBondShortNameBetween(String value1, String value2) {
            addCriterion("bond_short_name between", value1, value2, "bondShortName");
            return (Criteria) this;
        }

        public Criteria andBondShortNameNotBetween(String value1, String value2) {
            addCriterion("bond_short_name not between", value1, value2, "bondShortName");
            return (Criteria) this;
        }

        public Criteria andPublishDateIsNull() {
            addCriterion("publish_date is null");
            return (Criteria) this;
        }

        public Criteria andPublishDateIsNotNull() {
            addCriterion("publish_date is not null");
            return (Criteria) this;
        }

        public Criteria andPublishDateEqualTo(String value) {
            addCriterion("publish_date =", value, "publishDate");
            return (Criteria) this;
        }

        public Criteria andPublishDateNotEqualTo(String value) {
            addCriterion("publish_date <>", value, "publishDate");
            return (Criteria) this;
        }

        public Criteria andPublishDateGreaterThan(String value) {
            addCriterion("publish_date >", value, "publishDate");
            return (Criteria) this;
        }

        public Criteria andPublishDateGreaterThanOrEqualTo(String value) {
            addCriterion("publish_date >=", value, "publishDate");
            return (Criteria) this;
        }

        public Criteria andPublishDateLessThan(String value) {
            addCriterion("publish_date <", value, "publishDate");
            return (Criteria) this;
        }

        public Criteria andPublishDateLessThanOrEqualTo(String value) {
            addCriterion("publish_date <=", value, "publishDate");
            return (Criteria) this;
        }

        public Criteria andPublishDateLike(String value) {
            addCriterion("publish_date like", value, "publishDate");
            return (Criteria) this;
        }

        public Criteria andPublishDateNotLike(String value) {
            addCriterion("publish_date not like", value, "publishDate");
            return (Criteria) this;
        }

        public Criteria andPublishDateIn(List<String> values) {
            addCriterion("publish_date in", values, "publishDate");
            return (Criteria) this;
        }

        public Criteria andPublishDateNotIn(List<String> values) {
            addCriterion("publish_date not in", values, "publishDate");
            return (Criteria) this;
        }

        public Criteria andPublishDateBetween(String value1, String value2) {
            addCriterion("publish_date between", value1, value2, "publishDate");
            return (Criteria) this;
        }

        public Criteria andPublishDateNotBetween(String value1, String value2) {
            addCriterion("publish_date not between", value1, value2, "publishDate");
            return (Criteria) this;
        }

        public Criteria andChangeDateIsNull() {
            addCriterion("change_date is null");
            return (Criteria) this;
        }

        public Criteria andChangeDateIsNotNull() {
            addCriterion("change_date is not null");
            return (Criteria) this;
        }

        public Criteria andChangeDateEqualTo(String value) {
            addCriterion("change_date =", value, "changeDate");
            return (Criteria) this;
        }

        public Criteria andChangeDateNotEqualTo(String value) {
            addCriterion("change_date <>", value, "changeDate");
            return (Criteria) this;
        }

        public Criteria andChangeDateGreaterThan(String value) {
            addCriterion("change_date >", value, "changeDate");
            return (Criteria) this;
        }

        public Criteria andChangeDateGreaterThanOrEqualTo(String value) {
            addCriterion("change_date >=", value, "changeDate");
            return (Criteria) this;
        }

        public Criteria andChangeDateLessThan(String value) {
            addCriterion("change_date <", value, "changeDate");
            return (Criteria) this;
        }

        public Criteria andChangeDateLessThanOrEqualTo(String value) {
            addCriterion("change_date <=", value, "changeDate");
            return (Criteria) this;
        }

        public Criteria andChangeDateLike(String value) {
            addCriterion("change_date like", value, "changeDate");
            return (Criteria) this;
        }

        public Criteria andChangeDateNotLike(String value) {
            addCriterion("change_date not like", value, "changeDate");
            return (Criteria) this;
        }

        public Criteria andChangeDateIn(List<String> values) {
            addCriterion("change_date in", values, "changeDate");
            return (Criteria) this;
        }

        public Criteria andChangeDateNotIn(List<String> values) {
            addCriterion("change_date not in", values, "changeDate");
            return (Criteria) this;
        }

        public Criteria andChangeDateBetween(String value1, String value2) {
            addCriterion("change_date between", value1, value2, "changeDate");
            return (Criteria) this;
        }

        public Criteria andChangeDateNotBetween(String value1, String value2) {
            addCriterion("change_date not between", value1, value2, "changeDate");
            return (Criteria) this;
        }

        public Criteria andConvertPriceInitialIsNull() {
            addCriterion("convert_price_initial is null");
            return (Criteria) this;
        }

        public Criteria andConvertPriceInitialIsNotNull() {
            addCriterion("convert_price_initial is not null");
            return (Criteria) this;
        }

        public Criteria andConvertPriceInitialEqualTo(Float value) {
            addCriterion("convert_price_initial =", value, "convertPriceInitial");
            return (Criteria) this;
        }

        public Criteria andConvertPriceInitialNotEqualTo(Float value) {
            addCriterion("convert_price_initial <>", value, "convertPriceInitial");
            return (Criteria) this;
        }

        public Criteria andConvertPriceInitialGreaterThan(Float value) {
            addCriterion("convert_price_initial >", value, "convertPriceInitial");
            return (Criteria) this;
        }

        public Criteria andConvertPriceInitialGreaterThanOrEqualTo(Float value) {
            addCriterion("convert_price_initial >=", value, "convertPriceInitial");
            return (Criteria) this;
        }

        public Criteria andConvertPriceInitialLessThan(Float value) {
            addCriterion("convert_price_initial <", value, "convertPriceInitial");
            return (Criteria) this;
        }

        public Criteria andConvertPriceInitialLessThanOrEqualTo(Float value) {
            addCriterion("convert_price_initial <=", value, "convertPriceInitial");
            return (Criteria) this;
        }

        public Criteria andConvertPriceInitialIn(List<Float> values) {
            addCriterion("convert_price_initial in", values, "convertPriceInitial");
            return (Criteria) this;
        }

        public Criteria andConvertPriceInitialNotIn(List<Float> values) {
            addCriterion("convert_price_initial not in", values, "convertPriceInitial");
            return (Criteria) this;
        }

        public Criteria andConvertPriceInitialBetween(Float value1, Float value2) {
            addCriterion("convert_price_initial between", value1, value2, "convertPriceInitial");
            return (Criteria) this;
        }

        public Criteria andConvertPriceInitialNotBetween(Float value1, Float value2) {
            addCriterion("convert_price_initial not between", value1, value2, "convertPriceInitial");
            return (Criteria) this;
        }

        public Criteria andConvertpriceBefIsNull() {
            addCriterion("convertprice_bef is null");
            return (Criteria) this;
        }

        public Criteria andConvertpriceBefIsNotNull() {
            addCriterion("convertprice_bef is not null");
            return (Criteria) this;
        }

        public Criteria andConvertpriceBefEqualTo(Float value) {
            addCriterion("convertprice_bef =", value, "convertpriceBef");
            return (Criteria) this;
        }

        public Criteria andConvertpriceBefNotEqualTo(Float value) {
            addCriterion("convertprice_bef <>", value, "convertpriceBef");
            return (Criteria) this;
        }

        public Criteria andConvertpriceBefGreaterThan(Float value) {
            addCriterion("convertprice_bef >", value, "convertpriceBef");
            return (Criteria) this;
        }

        public Criteria andConvertpriceBefGreaterThanOrEqualTo(Float value) {
            addCriterion("convertprice_bef >=", value, "convertpriceBef");
            return (Criteria) this;
        }

        public Criteria andConvertpriceBefLessThan(Float value) {
            addCriterion("convertprice_bef <", value, "convertpriceBef");
            return (Criteria) this;
        }

        public Criteria andConvertpriceBefLessThanOrEqualTo(Float value) {
            addCriterion("convertprice_bef <=", value, "convertpriceBef");
            return (Criteria) this;
        }

        public Criteria andConvertpriceBefIn(List<Float> values) {
            addCriterion("convertprice_bef in", values, "convertpriceBef");
            return (Criteria) this;
        }

        public Criteria andConvertpriceBefNotIn(List<Float> values) {
            addCriterion("convertprice_bef not in", values, "convertpriceBef");
            return (Criteria) this;
        }

        public Criteria andConvertpriceBefBetween(Float value1, Float value2) {
            addCriterion("convertprice_bef between", value1, value2, "convertpriceBef");
            return (Criteria) this;
        }

        public Criteria andConvertpriceBefNotBetween(Float value1, Float value2) {
            addCriterion("convertprice_bef not between", value1, value2, "convertpriceBef");
            return (Criteria) this;
        }

        public Criteria andConvertpriceAftIsNull() {
            addCriterion("convertprice_aft is null");
            return (Criteria) this;
        }

        public Criteria andConvertpriceAftIsNotNull() {
            addCriterion("convertprice_aft is not null");
            return (Criteria) this;
        }

        public Criteria andConvertpriceAftEqualTo(Float value) {
            addCriterion("convertprice_aft =", value, "convertpriceAft");
            return (Criteria) this;
        }

        public Criteria andConvertpriceAftNotEqualTo(Float value) {
            addCriterion("convertprice_aft <>", value, "convertpriceAft");
            return (Criteria) this;
        }

        public Criteria andConvertpriceAftGreaterThan(Float value) {
            addCriterion("convertprice_aft >", value, "convertpriceAft");
            return (Criteria) this;
        }

        public Criteria andConvertpriceAftGreaterThanOrEqualTo(Float value) {
            addCriterion("convertprice_aft >=", value, "convertpriceAft");
            return (Criteria) this;
        }

        public Criteria andConvertpriceAftLessThan(Float value) {
            addCriterion("convertprice_aft <", value, "convertpriceAft");
            return (Criteria) this;
        }

        public Criteria andConvertpriceAftLessThanOrEqualTo(Float value) {
            addCriterion("convertprice_aft <=", value, "convertpriceAft");
            return (Criteria) this;
        }

        public Criteria andConvertpriceAftIn(List<Float> values) {
            addCriterion("convertprice_aft in", values, "convertpriceAft");
            return (Criteria) this;
        }

        public Criteria andConvertpriceAftNotIn(List<Float> values) {
            addCriterion("convertprice_aft not in", values, "convertpriceAft");
            return (Criteria) this;
        }

        public Criteria andConvertpriceAftBetween(Float value1, Float value2) {
            addCriterion("convertprice_aft between", value1, value2, "convertpriceAft");
            return (Criteria) this;
        }

        public Criteria andConvertpriceAftNotBetween(Float value1, Float value2) {
            addCriterion("convertprice_aft not between", value1, value2, "convertpriceAft");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}